package com.ytjj.qmyx.mall.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ProductStatisticsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProductStatisticsExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("product_id is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("product_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("product_id =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("product_id <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("product_id >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_id >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("product_id <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("product_id <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("product_id in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("product_id not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("product_id between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("product_id not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNull() {
            addCriterion("product_name is null");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNotNull() {
            addCriterion("product_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductNameEqualTo(String value) {
            addCriterion("product_name =", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotEqualTo(String value) {
            addCriterion("product_name <>", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThan(String value) {
            addCriterion("product_name >", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_name >=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThan(String value) {
            addCriterion("product_name <", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThanOrEqualTo(String value) {
            addCriterion("product_name <=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLike(String value) {
            addCriterion("product_name like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotLike(String value) {
            addCriterion("product_name not like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameIn(List<String> values) {
            addCriterion("product_name in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotIn(List<String> values) {
            addCriterion("product_name not in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameBetween(String value1, String value2) {
            addCriterion("product_name between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotBetween(String value1, String value2) {
            addCriterion("product_name not between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andTopCategoryIsNull() {
            addCriterion("top_category is null");
            return (Criteria) this;
        }

        public Criteria andTopCategoryIsNotNull() {
            addCriterion("top_category is not null");
            return (Criteria) this;
        }

        public Criteria andTopCategoryEqualTo(Integer value) {
            addCriterion("top_category =", value, "topCategory");
            return (Criteria) this;
        }

        public Criteria andTopCategoryNotEqualTo(Integer value) {
            addCriterion("top_category <>", value, "topCategory");
            return (Criteria) this;
        }

        public Criteria andTopCategoryGreaterThan(Integer value) {
            addCriterion("top_category >", value, "topCategory");
            return (Criteria) this;
        }

        public Criteria andTopCategoryGreaterThanOrEqualTo(Integer value) {
            addCriterion("top_category >=", value, "topCategory");
            return (Criteria) this;
        }

        public Criteria andTopCategoryLessThan(Integer value) {
            addCriterion("top_category <", value, "topCategory");
            return (Criteria) this;
        }

        public Criteria andTopCategoryLessThanOrEqualTo(Integer value) {
            addCriterion("top_category <=", value, "topCategory");
            return (Criteria) this;
        }

        public Criteria andTopCategoryIn(List<Integer> values) {
            addCriterion("top_category in", values, "topCategory");
            return (Criteria) this;
        }

        public Criteria andTopCategoryNotIn(List<Integer> values) {
            addCriterion("top_category not in", values, "topCategory");
            return (Criteria) this;
        }

        public Criteria andTopCategoryBetween(Integer value1, Integer value2) {
            addCriterion("top_category between", value1, value2, "topCategory");
            return (Criteria) this;
        }

        public Criteria andTopCategoryNotBetween(Integer value1, Integer value2) {
            addCriterion("top_category not between", value1, value2, "topCategory");
            return (Criteria) this;
        }

        public Criteria andProductPvIsNull() {
            addCriterion("product_pv is null");
            return (Criteria) this;
        }

        public Criteria andProductPvIsNotNull() {
            addCriterion("product_pv is not null");
            return (Criteria) this;
        }

        public Criteria andProductPvEqualTo(Integer value) {
            addCriterion("product_pv =", value, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductPvNotEqualTo(Integer value) {
            addCriterion("product_pv <>", value, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductPvGreaterThan(Integer value) {
            addCriterion("product_pv >", value, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductPvGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_pv >=", value, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductPvLessThan(Integer value) {
            addCriterion("product_pv <", value, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductPvLessThanOrEqualTo(Integer value) {
            addCriterion("product_pv <=", value, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductPvIn(List<Integer> values) {
            addCriterion("product_pv in", values, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductPvNotIn(List<Integer> values) {
            addCriterion("product_pv not in", values, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductPvBetween(Integer value1, Integer value2) {
            addCriterion("product_pv between", value1, value2, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductPvNotBetween(Integer value1, Integer value2) {
            addCriterion("product_pv not between", value1, value2, "productPv");
            return (Criteria) this;
        }

        public Criteria andProductUvIsNull() {
            addCriterion("product_uv is null");
            return (Criteria) this;
        }

        public Criteria andProductUvIsNotNull() {
            addCriterion("product_uv is not null");
            return (Criteria) this;
        }

        public Criteria andProductUvEqualTo(Integer value) {
            addCriterion("product_uv =", value, "productUv");
            return (Criteria) this;
        }

        public Criteria andProductUvNotEqualTo(Integer value) {
            addCriterion("product_uv <>", value, "productUv");
            return (Criteria) this;
        }

        public Criteria andProductUvGreaterThan(Integer value) {
            addCriterion("product_uv >", value, "productUv");
            return (Criteria) this;
        }

        public Criteria andProductUvGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_uv >=", value, "productUv");
            return (Criteria) this;
        }

        public Criteria andProductUvLessThan(Integer value) {
            addCriterion("product_uv <", value, "productUv");
            return (Criteria) this;
        }

        public Criteria andProductUvLessThanOrEqualTo(Integer value) {
            addCriterion("product_uv <=", value, "productUv");
            return (Criteria) this;
        }

        public Criteria andProductUvIn(List<Integer> values) {
            addCriterion("product_uv in", values, "productUv");
            return (Criteria) this;
        }

        public Criteria andProductUvNotIn(List<Integer> values) {
            addCriterion("product_uv not in", values, "productUv");
            return (Criteria) this;
        }

        public Criteria andProductUvBetween(Integer value1, Integer value2) {
            addCriterion("product_uv between", value1, value2, "productUv");
            return (Criteria) this;
        }

        public Criteria andProductUvNotBetween(Integer value1, Integer value2) {
            addCriterion("product_uv not between", value1, value2, "productUv");
            return (Criteria) this;
        }

        public Criteria andOrderNumIsNull() {
            addCriterion("order_num is null");
            return (Criteria) this;
        }

        public Criteria andOrderNumIsNotNull() {
            addCriterion("order_num is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNumEqualTo(Integer value) {
            addCriterion("order_num =", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumNotEqualTo(Integer value) {
            addCriterion("order_num <>", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumGreaterThan(Integer value) {
            addCriterion("order_num >", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_num >=", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumLessThan(Integer value) {
            addCriterion("order_num <", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumLessThanOrEqualTo(Integer value) {
            addCriterion("order_num <=", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumIn(List<Integer> values) {
            addCriterion("order_num in", values, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumNotIn(List<Integer> values) {
            addCriterion("order_num not in", values, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumBetween(Integer value1, Integer value2) {
            addCriterion("order_num between", value1, value2, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumNotBetween(Integer value1, Integer value2) {
            addCriterion("order_num not between", value1, value2, "orderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumIsNull() {
            addCriterion("real_order_num is null");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumIsNotNull() {
            addCriterion("real_order_num is not null");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumEqualTo(Integer value) {
            addCriterion("real_order_num =", value, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumNotEqualTo(Integer value) {
            addCriterion("real_order_num <>", value, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumGreaterThan(Integer value) {
            addCriterion("real_order_num >", value, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("real_order_num >=", value, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumLessThan(Integer value) {
            addCriterion("real_order_num <", value, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumLessThanOrEqualTo(Integer value) {
            addCriterion("real_order_num <=", value, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumIn(List<Integer> values) {
            addCriterion("real_order_num in", values, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumNotIn(List<Integer> values) {
            addCriterion("real_order_num not in", values, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumBetween(Integer value1, Integer value2) {
            addCriterion("real_order_num between", value1, value2, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andRealOrderNumNotBetween(Integer value1, Integer value2) {
            addCriterion("real_order_num not between", value1, value2, "realOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumIsNull() {
            addCriterion("pay_order_num is null");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumIsNotNull() {
            addCriterion("pay_order_num is not null");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumEqualTo(Integer value) {
            addCriterion("pay_order_num =", value, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumNotEqualTo(Integer value) {
            addCriterion("pay_order_num <>", value, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumGreaterThan(Integer value) {
            addCriterion("pay_order_num >", value, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_order_num >=", value, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumLessThan(Integer value) {
            addCriterion("pay_order_num <", value, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumLessThanOrEqualTo(Integer value) {
            addCriterion("pay_order_num <=", value, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumIn(List<Integer> values) {
            addCriterion("pay_order_num in", values, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumNotIn(List<Integer> values) {
            addCriterion("pay_order_num not in", values, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumBetween(Integer value1, Integer value2) {
            addCriterion("pay_order_num between", value1, value2, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andPayOrderNumNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_order_num not between", value1, value2, "payOrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderRateIsNull() {
            addCriterion("order_rate is null");
            return (Criteria) this;
        }

        public Criteria andOrderRateIsNotNull() {
            addCriterion("order_rate is not null");
            return (Criteria) this;
        }

        public Criteria andOrderRateEqualTo(BigDecimal value) {
            addCriterion("order_rate =", value, "orderRate");
            return (Criteria) this;
        }

        public Criteria andOrderRateNotEqualTo(BigDecimal value) {
            addCriterion("order_rate <>", value, "orderRate");
            return (Criteria) this;
        }

        public Criteria andOrderRateGreaterThan(BigDecimal value) {
            addCriterion("order_rate >", value, "orderRate");
            return (Criteria) this;
        }

        public Criteria andOrderRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_rate >=", value, "orderRate");
            return (Criteria) this;
        }

        public Criteria andOrderRateLessThan(BigDecimal value) {
            addCriterion("order_rate <", value, "orderRate");
            return (Criteria) this;
        }

        public Criteria andOrderRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_rate <=", value, "orderRate");
            return (Criteria) this;
        }

        public Criteria andOrderRateIn(List<BigDecimal> values) {
            addCriterion("order_rate in", values, "orderRate");
            return (Criteria) this;
        }

        public Criteria andOrderRateNotIn(List<BigDecimal> values) {
            addCriterion("order_rate not in", values, "orderRate");
            return (Criteria) this;
        }

        public Criteria andOrderRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_rate between", value1, value2, "orderRate");
            return (Criteria) this;
        }

        public Criteria andOrderRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_rate not between", value1, value2, "orderRate");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioIsNull() {
            addCriterion("pay_order_ratio is null");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioIsNotNull() {
            addCriterion("pay_order_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioEqualTo(BigDecimal value) {
            addCriterion("pay_order_ratio =", value, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioNotEqualTo(BigDecimal value) {
            addCriterion("pay_order_ratio <>", value, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioGreaterThan(BigDecimal value) {
            addCriterion("pay_order_ratio >", value, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_order_ratio >=", value, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioLessThan(BigDecimal value) {
            addCriterion("pay_order_ratio <", value, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_order_ratio <=", value, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioIn(List<BigDecimal> values) {
            addCriterion("pay_order_ratio in", values, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioNotIn(List<BigDecimal> values) {
            addCriterion("pay_order_ratio not in", values, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_order_ratio between", value1, value2, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andPayOrderRatioNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_order_ratio not between", value1, value2, "payOrderRatio");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeIsNull() {
            addCriterion("statistics_time is null");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeIsNotNull() {
            addCriterion("statistics_time is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeEqualTo(Date value) {
            addCriterion("statistics_time =", value, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeNotEqualTo(Date value) {
            addCriterion("statistics_time <>", value, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeGreaterThan(Date value) {
            addCriterion("statistics_time >", value, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("statistics_time >=", value, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeLessThan(Date value) {
            addCriterion("statistics_time <", value, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeLessThanOrEqualTo(Date value) {
            addCriterion("statistics_time <=", value, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeIn(List<Date> values) {
            addCriterion("statistics_time in", values, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeNotIn(List<Date> values) {
            addCriterion("statistics_time not in", values, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeBetween(Date value1, Date value2) {
            addCriterion("statistics_time between", value1, value2, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatisticsTimeNotBetween(Date value1, Date value2) {
            addCriterion("statistics_time not between", value1, value2, "statisticsTime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}